import VueRouter from "vue-router";

const router = new VueRouter({
    routes: [
        {
            path: '/about',
            component: () => import('@/pages/About.vue')
        },
        {
            path: '/home',
            component: () => import('@/pages/Home.vue'),
            children: [
                {
                    path: 'news',
                    component: () => import('@/pages/News.vue'),
                },
                {
                    path: 'message',
                    component: () => import('@/pages/Message.vue'),
                    children:[
                        {
                            path:'detail',
                            component:()=>import('@/pages/Detail.vue')
                        },
                    ],
                },
            ]
        }
    ]
})

export default router